package com.sltx.service.impl;

import com.sltx.dao.aaa.CyflMapper;
import com.sltx.service.CyflService;
import com.sltx.util.PageData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CyflServiceImpl implements CyflService {
    @Autowired
    private CyflMapper cyflMapper;

    @Override
    public int getNum() {
        return cyflMapper.getNum();
    }

    @Override
    public List<Map<String, Object>> getCyflList(PageData pd) {
        return cyflMapper.getCyflList(pd);
    }

    @Override
    public int getCyflByNameNum(PageData pd) {
        return cyflMapper.getCyflByNameNum(pd);
    }

    @Override
    public List<Map<String, Object>> getCYflByName(PageData pd) {

        List<Map<String, Object>> cyflByName = cyflMapper.getCyflByName(pd);

        return cyflByName;
    }

}
